gdkwindow-wayland: Destroy the wl_surface too when hiding a window
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 19 Jun 2014 19:04:09 +0000 (15:04 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Thu, 19 Jun 2014 19:10:54 +0000 (15:10 -0400)
commit87e2a7d4b23e633d0f2263d6ebd205c113eede0f
tree64f674fc7f9c0738afe4726db440aa1320b7a23f
parent6926c6d9f803fcdf1dedbac7433508438e7c1c60
gdkwindow-wayland: Destroy the wl_surface too when hiding a window

wl_surfaces can't switch roles, so destroying the xdg_surface but not
the wl_surface means that we could get an error when trying to re-map
the surface.

We could fix this by not destroying the xdg resource and only do it at
finalization time, but it's just as easy to just create a new wl_surface.
gdk/wayland/gdkwindow-wayland.c